#include "userdetail.h"

namespace yc {

void UserDetail::updateData(const QJsonObject& jo)
{
    UserOpenInfo::updateData(jo);

    if (jo.contains("phone")) {
        setPhone(jo["phone"].toString());
    }
    if (jo.contains("email")) {
        setEmail(jo["email"].toString());
    }
    if (jo.contains("role")) {
        setRole(jo["role"].toInt());
    }
}

} // namespace yc
